import { ReqPage } from "@/api/interface/index";
// 用户管理模块
export namespace Asset {
  export interface ReqAssetParams extends ReqPage {
    uniq_code: string;
    name: string;
    mobile_phone: string;
    username: string;
    email: string;
    org_id: string;
  }
  export interface ResColumnsList {
    fixed: boolean;
    key: string;
    name: string;
    path: string;
  }
}
export namespace AssetPanel {
  export interface FilterField {
    id: number;
    value: string;
  }
  export interface filterStatisticFields {
    asset_type: {
      name: string;
      value: FilterField[];
    };
    data_center: {
      name: string;
      value: FilterField[];
    };
    region: {
      name: string;
      value: FilterField[];
    };
    passageway: {
      name: string;
      value: FilterField[];
    };
  }

  export interface RackData {
    status: string;
    seq: string;
  }

  export interface Rack {
    rack_name: string;
    rack_data?: RackData[];
  }

  export interface slaverStatistic {
    name: string;
    passageway_id: number;
    rack: Rack[];
    camera_id: string;
  }
}
